package com.example.springcloud.controller;

import com.example.springcloud.service.ImessageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @author hanjc
 */
@RestController("/provider")
public class SendMessageController {

    @Resource
    private ImessageService imessageService;

    @GetMapping("/sendMessage")
    public String sendMessage() {

        imessageService.sendMessage();
        return "provider8801 send message\n" + new Date();
    }

}
